using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Configuration;
using AgentBar.Common;

namespace AgentBar
{
    public partial class frmVersion : Form
    {
        public frmVersion()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.Dispose(); 
        }

        private void frmVersion_Load(object sender, EventArgs e)
        {
            iniForm();
            
        }
        private void iniForm()
        {
            try
            {
                string language = ConfigurationManager.AppSettings["LAN"];
                if (string.IsNullOrEmpty(language)) language = "JP";
                LanguageResourceManager res = new LanguageResourceManager(language);
                this.Font = new System.Drawing.Font(res.GetString("AP0000000"), float.Parse(res.GetString("AP0000001")), System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, Byte.Parse("0"));
                this.Text = res.GetString("AP0010001");
                this.lblVer1.Text = res.GetString("AP0010002");
                this.lblVer2.Text = res.GetString("AP0010003");
                this.button1.Text = res.GetString("AP0010004");
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message );
            }
        }
       
        
    }
}